package co.fitstart.entity.market;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author dan
 *
 */
@Alias("invitationStatus")
public enum InvitationStatus {
    
    INVITED("invited", "已邀请"),
    
    SIGN_UP("sign_up", "已报名");
    
    private String alias;
    
    private String description;
    
    private InvitationStatus(String alias, String description) {
        this.alias = alias;
        this.description = description;
    }
    
    /**
     * 
     * @param alias
     * @return
     */
    public static InvitationStatus aliasOf(String alias) {
        for (InvitationStatus invitationStatus : InvitationStatus.values()) {
            if (invitationStatus.getAlias().equalsIgnoreCase(alias)) {
                return invitationStatus;
            }
        }
        
        return null;
    }
    
    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param alias the alias to set
     */
    public void setAlias(String alias) {
        this.alias = alias;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

}
